package com.cc.AOP.lianxi;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;

@Slf4j
//@Component
@Aspect
public class MyAspenct6 {

    @Before("@annotation(com.cc.AOP.LogOperation)")
    public  void  before(){
        log.info("MyAspenct6  前置通知");
    }

    //后置通知
    @After("@annotation(com.cc.AOP.LogOperation)")
    public  void  after(){
        log.info("MyAspenct6  后置通知");
    }
}
